package com.tunan.system.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tunan.persistence.dao.sck.EntityMapper;
import com.tunan.persistence.dao.sck.TSysMenuMapper;
import com.tunan.persistence.model.TSysMenu;

@Service
public class SysMenuService extends EntityService<TSysMenu> {
	@Autowired
	private TSysMenuMapper tSysMenuMapper;

	@Override
	public EntityMapper<TSysMenu> getMapper() {
		return tSysMenuMapper;
	}

	public List<TSysMenu> findByParentMenu(String parentMenu) {
		return tSysMenuMapper.findByParentMenu(parentMenu);
	}

}
